import {
    get,
    post
} from './request'

//登录
export const login = p => post('/TcbRouter/adminLogin', p)
//上传视频获取七牛token
export const getImgToken = p => post('/TcbRouter/getQiniuToken', p)
//获取云点播签名
export const getYunToken = p => post('/TcbRouterAu/getYunToken', p)
//新增系列
export const addSeries = p => post('/TcbRouter/addSeries', p)
//修改系列
export const modifySeries = p => post('/TcbRouter/modifySeries', p)
//删除系列deleteSeries
export const deleteSeries = p => post('/TcbRouter/deleteSeries', p)
//获取系列列表
export const getSeriesList = p => post('/TcbRouter/getSeriesList', p)
//新增视频数据addVideoList
export const addVideoList = p => post('/TcbRouter/addVideoList', p)
//修改视频数据modifyVideo
export const modifyVideo = p => post('/TcbRouterAu/modifyVideo', p)
//删除视频数据deleteVideo
export const deleteVideo = p => post('/TcbRouter/deleteVideo', p)
//获取视频数据列表getVideoList
export const getVideoList = p => post('/TcbRouterAu/getVideoList', p)
//获取最近5条视频广告完播量和程序访问量
export const statisticsAdEndAdmin = p => post('/TcbRouterAu/statisticsAdEndAdmin', p)
//获取所有视频列表---管理员可见
export const getAuthorVideoList = p => post('/TcbRouter/getAuthorVideoList', p)
//获取所有作者列表---管理员可见
export const getAuthorList = p => post('/TcbRouterAu/getAuthorList', p)
//修改密码
export const modifyPassword = p => post('/TcbRouterAu/modifyPassword', p)
//获取小程序推广计划收益getStarPriceListNew
export const getStarPriceListNew = p => post('/TcbRouterAu/getStarPriceListNew', p)
//发起提现--抖音广告收益
export const putInPriceAdDy = p => post('/TcbRouterAu/putInPriceAdDy', p)






//获取用户信息
export const getUserInfo = p => get('/getUserInfo/getAdminInfo', p)
//用户户管理
//用户列表
export const userList = p => post('/userManage', p)
//用户新增
export const addUser = p => post('/userManage/add', p)
//删除用户
export const userDel = p => post('/userManage/delete', p)

//商户管理
//商户列表
export const bossList = p => post('/shopManage/shopList', p)
//商户新增
export const addBoss = p => post('/shopManage/addShop', p)
//删除商户
export const bossDel = p => post('/shopManage/deleteShop', p)
//修改商户
export const bossEdit = p => post('/shopManage/updateShop', p)
//商户信息
export const bossDetail = p => post('/shopManage/shopInfo', p)

//轮播图管理
//轮播图列表
export const lbList = p => post('/swiperManage/swiperList', p)
//轮播图新增
export const addLb = p => post('/swiperManage/addSwiper', p)
//删除轮播图
export const lbDel = p => post('/swiperManage/deleteSwiper', p)
//修改轮播图
export const lbEdit = p => post('/swiperManage/updateSwiper', p)


//类别管理
//分组
//分组列表
export const groupList = p => post('/groupingManage/groupingList', p)
//分组新增
export const addGroup = p => post('/groupingManage/addGrouping', p)
//删除分组
export const groupDel = p => post('/groupingManage/deleteGrouping', p)
//修改分组
export const groupEdit = p => post('/groupingManage/updateGrouping', p)
//系列
//系列列表
export const seriesList = p => post('/seriesManage/seriesList', p)


//首页推荐
//首页列表
export const indexList = p => post('/homerecommend/recommendList', p)
//首页新增
export const addIndex = p => post('/homerecommend/addRecommend', p)
//删除首页
export const indexDel = p => post('/homerecommend/deleteRecommend', p)
//修改首页
export const indexEdit = p => post('/homerecommend/updateRecommend', p)

//商品管理
//商品列表
export const waresList = p => post('/goodsManage/goodsList', p)
//商品新增
export const addWares = p => post('/goodsManage/addGoods', p)
//删除商品
export const waresDel = p => post('/goodsManage/deleteGoods', p)
//修改商品
export const waresEdit = p => post('/goodsManage/updateGoods', p)
